package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class XJFirehydrantRowMapper implements RowMapper<XJFirehydrant>{


	@Override
	public XJFirehydrant mapRow(ResultSet rs, int rowNum) throws SQLException {
		XJFirehydrant  lj= new XJFirehydrant();
		lj.setId(rs.getInt("id"));
		lj.setFire_hydrant_name(rs.getString("fire_hydrant_name"));
		lj.setFire_hydrant_pic(rs.getString(""));
		lj.setFire_hydrant_serial_number(rs.getString(""));
		lj.setFire_hydrant_location(rs.getString(""));
		lj.setFire_hydrant_state(rs.getString(""));
		lj.setFire_hydrant_location_lat(rs.getString(""));
		lj.setFire_hydrant_location_lng(rs.getString(""));
		lj.setFire_hydrant_baidu_location_lng(rs.getString(""));
		lj.setFire_hydrant_baidu_location_lat(rs.getString(""));
		return lj;
	}

}
